package plugin

func init() {
	RegisterTemplate(SimpleTemplate{
		templateName: "course项目",
		dirs: []string{
			"main/java",
			"main/resources",
			"test/java",
			"test/resources",
			"main/java/src/org/fromsko/dao",
			"main/java/src/org/fromsko/dao/impl",
			"main/java/src/org/fromsko/models",
			"main/java/src/org/fromsko/service",
			"main/java/src/org/fromsko/service/impl",
		},
		files: map[string]string{
			"README.md": "# course项目",
			"pom.xml": `<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                             http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
    </properties>

    <dependencies>
        <!-- Add dependencies here -->
    </dependencies>
</project>`,
			".gitignore": "*.class\n*.jar\n/target/\n.idea/\n*.iml\n.DS_Store",
		},
	})
}
